
<%@ page language="java" pageEncoding="UTF-8"%>
<%@ include file="/WEB-INF/jsp/taglib.jsp"%>
<%@ taglib prefix="ec" uri="/WEB-INF/taglib/extremecomponents.tld" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>    
    <title>DataConverge</title>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">    
    <link rel="stylesheet" type="text/css" href="css/style.css">
 	<link rel="stylesheet" type="text/css" href="css/extremecomponents.css">
    <script language="javascript">
    	function del(id1){
    		if(window.confirm("确定删除此课题？","确定","取消")){	
	    		var page=document.forms.ec.ec_p.value;	    		
	  			document.location.href="comments.htm?action=delComment&commentId="+id1+"&page="+page;
	  		}
    	}
    </script>
  </head>
  
  <body>
  <br>
  </br>
 
    <ec:table 
  		items="commentList"
  		var="comment"
  		action="${pageContext.request.contextPath}/comments.htm"
  		imagePath="${pageContext.request.contextPath}/images/table/compact/*.gif"
  		title="留言记录"
  		view="compact"
  		rowsDisplayed="10">
  		<ec:row highlightRow="true">         
   			<ec:column property="content" title="内容"/>
   			<ec:column property="commentDate" title="留言时间"/>
   			<ec:column property="commentator" title="留言者"/> 
   			<c:if test="${commentStatus==null}">
            	<ec:column property="delete" title="删除" filterable="false" sortable="false">
               		<a href="#" onclick="del('${comment.id}');"><img src="images/delete.gif"/></a>
           		</ec:column>
            </c:if>
  		</ec:row>
	</ec:table>	
	<br>
	 <div align="center"><a href="comments.htm?action=comment"><font color="red"><h3>我要留言</h3></font></a></div>
  </body>
</html>
